package cn.wh.event;

import cn.wh.context.ApplicationListener;

import java.util.Date;

/**
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/11/15 16:01
 * @Created wh
 */
public class CustomEventListener  implements ApplicationListener<CustomEvent> {

    @Override
    public void onApplicationEvent(CustomEvent event) {
        System.out.println("收到: "+event.getSource()+"消息;时间:"+new Date());
        System.out.println("消息: "+event.getId()+":"+event.getMessage());
    }
}
